#ifndef NODE_H
#define NODE_H

#include <string>
#include "mcoord.h"
#include <fstream>

class node 
	: public mcoord {
private:
	size_t numb;       //numer wierzchołku
	char str[512];  //nazwa wierzchołku
public:
	node(int nb, char *st, double xx, double yy);
	node(const node &nodecpy); //konstruktor kopii
	node(void):numb(0){};
	bool operator == (const node &num);
	friend std::ostream &operator << (std::ostream &strm, const node &ob);
	friend std::istream &operator >> (std::istream &strm, node &ob);
	void operator=(const node &ob); 
	void writeb(std::ofstream &strm);
	void readb(std::ifstream &strm);
};


#endif // NODE_H
